package com.yl.pattern.behavioralmodel.responsibility;

/**
 * @Author 小羊
 * @Date 31/10/2024下午 5:03
 * @ClassName GroupLeader
 * @Description 小组长类（具体的处理者）
 */
public class GroupLeader extends Handler{
    public GroupLeader() {
        super(0, Handler.NUM_ONE);
    }

    @Override
    protected void handlerLevel(LeaveRequest leave) {
        System.out.println(leave.getName()+"请假"+leave.getNum()+"天"+leave.getContent());
        System.out.println("小组长审批：同意");
    }
}
